package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 第三方机构详细信息
 * </p>
 *
 * @author Lbx
 * @since 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdThirdInformation对象", description = "第三方机构详细信息")
public class JdThirdInformation extends Model<JdThirdInformation> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "三方机构名字")
    private String name;

    @ApiModelProperty(value = "三方logo")
    private String logo;

    @ApiModelProperty(value = "第三方机构id（user表）")
    private Integer userId;

    @ApiModelProperty(value = "第三方机构banner")
    private String banner;

    @ApiModelProperty(value = "第三方机构简介")
    private String thirdIntroduction;

    @ApiModelProperty(value = "第三方机构风采")
    private String thirdDetails;

    @ApiModelProperty(value = "入驻时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
